#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QAction>
#include <QTextEdit>
#include <QCloseEvent>

class MainWindow : public QMainWindow {
    Q_OBJECT

protected:
    void closeEvent(QCloseEvent* event);

public:
    MainWindow(QWidget* parent = 0);
    ~MainWindow();

private:
    QAction* openAction, *saveAction;
    QTextEdit* textEdit;
    void openFile();
    void saveFile();
};

#endif // MAINWINDOW_H
